package com.wb.base;


import android.widget.RadioGroup;

import java.util.List;

public abstract class BaseTabMainActivity extends BaseActivity {

    private List<BaseFragment> baseFragments;

    private BaseFragmentAdapter adapter;

    protected abstract RadioGroup getRadioGroupView();

    protected abstract int getContentViewId();

    protected abstract List<BaseFragment> getFragment();

    @Override
    protected void initView() {
        baseFragments = getFragment();
        adapter = new BaseFragmentAdapter(this, baseFragments, getRadioGroupView(), getContentViewId());
        adapter.setOnFragmentChangeListener(new BaseFragmentAdapter.OnFragmentChangeListener() {
            @Override
            public void onChange(int index) {
            }
        });
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void onResume() {
        super.onResume();
    }
}
